import request from '@/tools/request'

export function menuCreate(data) {
  return request({
    url: '/menu/create',
    method: 'post',
    data
  })
}

export function menuFindAll(data) {
  return request({
    url: '/menu/findAll',
    method: 'post',
    data,
    loading: false
  })
}

export function menuFindOne(data) {
  return request({
    url: '/menu/findOne',
    method: 'post',
    data
  })
}

export function menuUpdate(data) {
  return request({
    url: '/menu/update',
    method: 'post',
    data
  })
}

export function menuRemove(data) {
  return request({
    url: '/menu/remove',
    method: 'post',
    data
  })
}

export function menuRemoveBatch(data) {
  return request({
    url: '/menu/removeBatch',
    method: 'post',
    data
  })
}

export function menuCreateBatch(data) {
  return request({
    url: '/menu/createBatch',
    method: 'post',
    data
  })
}
